const user = {
    name: "姬成",
    age: 100,
    sayHello1: function() {
        console.log(this.name, this.age);
    },
    sayHello(){ // 和上面的写法等效，也是语法糖, 这种简写会启用es5严格模式
        console.log(this.name, this.age)
    }
}

console.log(user);

user.sayHello();